//
// Decompiled by Jadx - 368ms
//
package s;

import android.app.Activity;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.i;
import cc.f;
import fh.a;
import fi.e;
import fi.w;
import fn.b;
import me.plusne.Adapter.Login.g;

public final class m {
    public w a;
    public final Activity b;
    public final boolean c;

    public m(Activity activity, boolean z) {
        this.b = activity;
        this.c = z;
    }

    public final void d(g gVar) {
        Activity activity = this.b;
        View inflate = LayoutInflater.from(activity).inflate(-2113142706, (ViewGroup) null, false);
        int i = 0x7f820098;
        TextView textView = (TextView) i.cg(0x7f820098, inflate);
        if (textView != null) {
            i = 0x7f82009f;
            TextView textView2 = (TextView) i.cg(0x7f82009f, inflate);
            if (textView2 != null) {
                i = 0x7f8200a0;
                TextView textView3 = (TextView) i.cg(0x7f8200a0, inflate);
                if (textView3 != null) {
                    i = 0x7f820110;
                    EditText editText = (EditText) i.cg(0x7f820110, inflate);
                    if (editText != null) {
                        i = 0x7f820111;
                        EditText editText2 = (EditText) i.cg(0x7f820111, inflate);
                        if (editText2 != null) {
                            f fVar = new f((LinearLayout) inflate, textView, textView2, textView3, editText, editText2);
                            w wVar = new w(activity);
                            wVar.bj(fi.e.VIEW);
                            wVar.ar = fVar.h();
                            this.a = wVar;
                            String g = b.g("login_user", "");
                            String g2 = b.g("login_pass", "");
                            float f = 25;
                            r.e.d(-2113535903, f, (TextView) fVar.d);
                            r.e.d(-2113535903, f, (TextView) fVar.c);
                            r.e.d(-2113535899, f, (EditText) fVar.g);
                            r.e.d(-2113535899, f, (EditText) fVar.f);
                            ((TextView) fVar.e).setText("填写账号密码");
                            ((EditText) fVar.g).setText(g);
                            ((EditText) fVar.f).setText(g2);
                            ((TextView) fVar.d).setText("确认");
                            ((TextView) fVar.c).setText("取消");
                            ((TextView) fVar.d).setOnClickListener(new fh.g(this, fVar, gVar, 4));
                            ((TextView) fVar.c).setOnClickListener(new a(7, this));
                            this.a.bk();
                            if (this.c && !TextUtils.isEmpty(g) && !TextUtils.isEmpty(g2)) {
                                ((TextView) fVar.d).performClick();
                                return;
                            }
                            return;
                        }
                    }
                }
            }
        }
        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
    }
}
